<?php
//=========================
//Vuong Van Binh
//Wanbin@vietnambiz.com
//edit user process
//=========================
include ADMIN_INCLUDE_DIR."/header.php";
edit_account_user();
$user_edit_info = get_account_user_edit();
?>
<div class="container_l">
		<div class="title_user"><img src="images/icon1.gif" />Cập nhật taì khoản</div>
		<div class="table_user">
			<div class="table_user_in2">
			<?php 
					show_error(); 
					show_success(); 
			?>
				<fieldset>
				<form action="" method="post">
					<legend accesskey="N">Thông tin</legend>
					<div class="lineaddnew">
						<div class="lineform">
							<div class="divlabel">Tên đăng nhập: <font color="#FF0000">*</font></div>
							<div class="divform"><input type="text" name="username" value="<?php echo $user_edit_info["username"]; ?>"/></div>
						</div>
						<div class="lineform">
							<div class="divlabel">Mật khẩu: <font color="#FF0000">*</font></div>
							<div class="divform"><input type="password" name="password" value="" /></div>
						</div>
						<div class="lineform">
							<div class="divlabel">Nhập lại mật khẩu: <font color="#FF0000">*</font></div>
							<div class="divform"><input type="password" name="repassword" value="" /></div>
						</div>
						<div class="lineform">
							<div class="divlabel">Email: <font color="#FF0000">*</font></div>
							<div class="divform"><input type="text" name="email" value="<?php echo $user_edit_info["email"]; ?>" /></div>
						</div>

						<div class="spacer1"><span></span></div>
					</div>
					<div class="spacer1"><span></span></div>
				</fieldset>
				
				<div class="linesubmit">
					<input type="hidden" name="editaccountuser" value="okie"/>
					<input type="submit" name="editaccountuser" value="Lưu lại" class="button" />
					
					<input type="button" name="back" value="Thoát" class="button" onClick="javascript:history.back();" />
					<input type="hidden" name="edit_id" value="<?php echo intval($_SESSION['adlogin']["id"]); ?>"  />
				</div>
			</form>
				
			</div>
		</div>
	</div>
<?php
include "inc/right.php"; 
include ADMIN_INCLUDE_DIR."/footer.php"; 
?>